package com.newtribe.tk.impl;

import com.newtribe.tk.TKWorker;
import com.newtribe.tk.Task;

/**
 * <p> </p>
 * <p>Description: Innovatation method</p>
 * <p>Copyright: Copyright (c)  newtribe innovation 2005</p>
 * <p> the default implementation for TKWorker ,
 * this class invoke the execute method in <class> Task </class> simplily .
 * </p>
 * @author fuwei
 * @version 1.0
 */

public class TKWorkerImpl extends TKWorker {

  public TKWorkerImpl() {
  }

  public TKWorkerImpl(String name ) {
    super(name) ;
  }
  public void processTask(Task task ) throws Exception {
   // Object lock =new Object() ;
     // synchronized (lock) {
     task.execute();
     //   lock.wait() ;
     // }
   }


}